Current Location: Home> Function Categories> intdiv

intdiv

Round the division result
Name:intdiv
Category:math
Programming Language:php
One-line Description:Perform integer division operation.

Definition and usage

intdiv() function is used to perform integer division operation.

Example

Perform several integer division operations:

 <?php
echo intdiv ( 8 , 4 ) ;
echo intdiv ( 5 , 2 ) ;
echo intdiv ( - 5 , - 2 ) ;
?>

Run the instance

grammar

 intdiv ( dividend , divisor ) ;
parameter describe
divide Required. Specifies the number to be divided.
divisor Required. Specifies the number used to divide the divisor.
Similar Functions
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Round floating point numbers round

    round

    Roundfloatingpointnu
  • Returns exp(number) - 1, and can calculate the exact result even when the value of number is close to zero. expm1

    expm1

    Returnsexp(number)-1
  • Reverse cosine acos

    acos

    Reversecosine
  • Convert octal to decimal octdec

    octdec

    Convertoctaltodecima
  • Convert decimal to hexadecimal dechex

    dechex

    Convertdecimaltohexa
  • Determine whether it is a legal value is_nan

    is_nan

    Determinewhetheritis
  • Find the minimum value min

    min

    Findtheminimumvalue
Popular Articles